package com.mym.system;

import java.util.Scanner;

/**
 * @author miao
 * @version 1.0
 * @date 2025/4/15 16:23
 * @description
 */
public class Test {
    public static final Scanner sc = new Scanner(System.in);
    public static final User users = new User();
    public static final ShangPing shangPing = new ShangPing();
    //构造静态用户信息
    public static final String userName = "admin";
    public static final String passWord = "123456";
    public static final String otherName = "admin";
    public static final int age = 18;


    public static void main(String[] args) {

        while (true) {
            System.out.println("*****************电器商城************************");
            System.out.println("1、用户登录");
            System.out.println("2、用户注册");
            System.out.println("3、退出系统");
            System.out.println("*****************电器商城************************");
            System.out.println("请输入您的选择：");
            int i = sc.nextInt();
            switch (i) {
                case 1:
                    users.isLogin();

                    break;
                case 2:
                    users.isUserNameAndPassWordAndAgeAndOtherName();
                    break;
                case 3:
                    System.out.println("欢迎下次再来");
                    System.exit(0);
                    break;
                default:
                    System.out.println("输入有误，请重新输入");
            }
        }
    }
}
